﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace BookingSystemModel
{
    [DataContract]
    public class Membership
    {
        [DataMember]
        public Customer Customer { get; set; }

        [DataMember]
        public List<Subscription> Subscriptions { get; set; }
        
        [DataMember]
        public List<Employee> Employees { get; set; }

        [DataMember]
        public DateTime Created { get; set; }

        [DataMember]
        public DateTime Ended { get; set; }

        [DataMember]
        public Boolean IsActive { get; set; }

        public Membership(Customer _c)
        {
            this.Customer = _c;
            this.Created = DateTime.UtcNow;
            this.IsActive = true;
        }

    }
}

